package engine;

import java.util.ArrayList;

public class InstructionSet {
	public ArrayList<Instruction> instructions;
	int basePC;
	public InstructionSet() {
		instructions=new ArrayList<Instruction>();
	}
	public Instruction getInstruction(int i) {
		return instructions.get(i-basePC);
	}
	public void setPC(int basePC) {
		this.basePC=basePC;
	}
	public void addInstruction(Instruction inst) {
		instructions.add(inst);
	}
	
}
